${shlibs:Depends},
default-jdk [!hppa !hurd-any],
default-libmysqlclient-dev,
- libboost-dev (= ${boost:Version}),
+ ${boost:Depends},
libavcodec-dev,
libavformat-dev,
libavutil-dev,
find $(CURDIR)/debian/vtk9-doc/ -type f -print0 | xargs -0 sed -i 's/https:\/\/raw\.githubusercontent\.com//g'
find $(CURDIR)/debian/vtk9-doc/ -type f -print0 | xargs -0 sed -i 's/https:\/\/cdn\.jsdelivr\.net\/npm\/mathjax@2/\/usr\/share\/javascript\/mathjax/g'
-# Record the exact Boost version used at build time so that libvtk9-dev
-# pulls in the same version and triggers a rebuild when Boost is upgraded.
+# Track the versioned libboost*-dev at upstream version only, to avoid rebuilds
+# on boost-defaults/binNMU uploads.
execute_before_dh_gencontrol:
- echo "boost:Version=$$(dpkg-query -W -f='$${Version}' libboost-dev)" >> debian/libvtk9-dev.substvars
+ boost_pkg=$$(dpkg-query -W -f='$${Package}\n' 'libboost*-dev' 2>/dev/null \
+ | sed -nE '/^libboost[0-9]+\.[0-9]+-dev$$/p' | sort -V | tail -n1) && \
+ boost_ver=$$(dpkg-query -W -f='$${Version}' "$$boost_pkg" | sed 's/-[^-]*$$//') && \
+ echo "boost:Depends=$$boost_pkg (>= $$boost_ver)" >> debian/libvtk9-dev.substvars
ifeq ($(DEB_HOST_ARCH),sh4)
override_dh_dwz: